import request from '@/config/axios'
// import type { TableData } from './types'
// 查询部门tree
export const getDepartmentTreeListApi = (): Promise<LoginResponse> => {
  return request.get({ url: '/sys/depart/queryTreeList' })
}
//添加部门 /sys/depart/add
export const addDepart = (data: any): Promise<LoginResponse> => {
  return request.post({ url: '/sys/depart/add', data })
}
//批量删除 /sys/depart/deleteBatch
export const removeDepart = (params: any): Promise<LoginResponse> => {
  return request.post({ url: '/sys/depart/deleteBatch', params })
}
//编辑部门 /sys/depart
export const editDepart = (data: any): Promise<LoginResponse> => {
  return request.post({ url: '/sys/depart', data })
}
